﻿using System;
using System.Collections.Generic;
using System.Text;

using TRPOP.Common;

namespace TRPOP.CMS.Model
{
    /// <summary>
    /// 附件表
    /// </summary>
    [Serializable]
    public class ContentUpFileInfo
    {
        #region 私有变量
        private int m_intContentUpFileId = 0;
        private int m_intNodeID = 0;
        private int m_intContentId = 0;
        private string m_strFileRoot = "";
        private string m_strCategory = "";
        private int m_intAttributeID = 0;
        private DateTime m_datAddTime = StringExtension.NullDateTime;
        private int m_intAddUserId = 0;
        private decimal m_decFileSize = 0;
        private string m_strFileURL = "";
        #endregion

        #region 成员函数

        /// <summary>
        ///  
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int ContentUpFileId
        {
            get
            {
                return m_intContentUpFileId;
            }
            set
            {
                m_intContentUpFileId = value;
            }
        }

        /// <summary>
        ///  结点ID
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int NodeID
        {
            get
            {
                return m_intNodeID;
            }
            set
            {
                m_intNodeID = value;
            }
        }

        /// <summary>
        ///  信息基表id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int ContentId
        {
            get
            {
                return m_intContentId;
            }
            set
            {
                m_intContentId = value;
            }
        }

        /// <summary>
        ///  文件地址
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string FileRoot
        {
            get
            {
                return m_strFileRoot;
            }
            set
            {
                m_strFileRoot = value.ToLower();
            }
        }

        /// <summary>
        ///  后缀
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Category
        {
            get
            {
                return m_strCategory;
            }
            set
            {
                m_strCategory = value;
            }
        }

        /// <summary>
        ///  属性ID
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int AttributeID
        {
            get
            {
                return m_intAttributeID;
            }
            set
            {
                m_intAttributeID = value;
            }
        }

        /// <summary>
        ///  添加时间
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public DateTime AddTime
        {
            get
            {
                return m_datAddTime;
            }
            set
            {
                m_datAddTime = value;
            }
        }

        /// <summary>
        ///  添加者id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int AddUserId
        {
            get
            {
                return m_intAddUserId;
            }
            set
            {
                m_intAddUserId = value;
            }
        }

        /// <summary>
        ///  附件大小(K单位)
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public decimal FileSize
        {
            get
            {
                return m_decFileSize;
            }
            set
            {
                m_decFileSize = value;
            }
        }
        /// <summary>
        ///  
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string FileURL
        {
            get
            {
                return m_strFileURL;
            }
            set
            {
                m_strFileURL = value;
            }
        }


        #endregion

    }
}

